package com.example.firstdemo.ui.screens.pages.addProblem.addProblem.selectCarriage

import com.example.firstdemo.network.api.addProblem.data.VehicleData
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.asSharedFlow

object SelectCarriageEvent {
    private val _vehicle = MutableSharedFlow<VehicleData>()
    val vehicle = _vehicle.asSharedFlow()

    suspend fun emit(event: VehicleData) {
        _vehicle.emit(event)
    }
}